package net.openvision.music.model;

import java.util.ArrayList;
import java.util.List;

public class Staff extends ScoreObject {
	private List<Bar> bars;
	private DefaultScoreModel parent;

	public Staff(DefaultScoreModel parent) {
		bars = new ArrayList<Bar>();
		this.parent = parent;
	}
	
	public Staff(DefaultScoreModel parent, int initialEmptyBars) {
		this(parent);
		for (int i=0;i<initialEmptyBars;i++) {
			//bars.add(new Bar(this, i));
		}
	}

	public int getBarCount() {
		return bars.size();
	}

	public Bar getBarAt(int index) {
		return bars.get(index);
	}

	public Iterable<Bar> getBars() {
		return bars;
	}
	
	public Bar addBar() {
		//Bar result = new Bar(this, bars.size());
		//bars.add(result);
		return null; /*result;*/
	}
	
	public TimeSignature getTimeSignature(int bar) {
		return null;
	}

}
